import { Component, OnInit, Input } from '@angular/core';
import { _HttpClient } from '@delon/theme';

@Component({
  selector: 'app-addendpoint',
  templateUrl: './addendpoint.component.html',
  styleUrls: ['./addendpoint.component.less'],
})
export class AddEndpointComponent implements OnInit {
  @Input() checked: any;
  @Input() endpoint: any;
  @Input() stauts: any;

  // public dappData = {
  //   checked: false,
  //   endpoint: "",
  //   stauts: "unused",
  // }

  constructor(
    private http: _HttpClient
  ) {

  }

  ngOnInit() {
    // this.initData()
  }

  // 如果是修改数据 并传递了参数  则渲染这些参数
  initData() {
    // if (this.endpoint) {
    //   this.dappData.checked = this.checked;
    //   this.dappData.appName = this.appName;
    //   this.dappData.appUrl = this.appUrl;
    //   this.dappData.appName = this.appName;
    //   this.dappData.appIcon = this.appIcon;
    //   this.dappData.platform = this.platform;
    // }

  }
}
